<?php
include ("conn.php");
$name = $_POST['name'];
$age = $_POST['age'];
$result = $_POST['result'];
$txz = $_POST['txz'];
//创建编译的sql语句
$stmt = $conn -> prepare("insert into result(name,age,result,txz) values(?,?,?,?)");
//can shu bang ding 
$stmt -> bind_param("siis", $name,$age,$result,$txz);
// zhi xing yu chu li 
$stmt -> execute();
if ($conn -> affected_rows){
	echo"添加成功！";
}else{
	echo "Error:". $conn -> error;
}
$stmt -> close();
$conn -> close();